package com.ruoyi.accountant.service;

import com.ruoyi.accountant.domain.other.Cashflow;
import com.ruoyi.accountant.domain.other.ProfitLossReportRow;
import com.ruoyi.accountant.domain.other.StatusResult;
import com.ruoyi.web.web.form.CashFlowForm;
import com.ruoyi.web.web.form.StatusForm;

import java.util.List;

/***
 * 报表
 */
public interface ReportService {
    /****
     * 查询具体的月总额
     * @param type
     * @return
     */
    List<ProfitLossReportRow> findMonthMoneyCountByTypeAndReason(String type, Long ofReason);

    /***
     * 查询现金流
     * @param form
     * @return
     */
    Cashflow findCashFlow(CashFlowForm form);

    /***
     * 根据原因查询应收款和应付款情况
     * @param form
     * @return
     */
    StatusResult findStatusByReason(StatusForm form);

    /***
     * 根据账户查询应收款和应付款情况
     * @param form
     * @return
     */
    StatusResult findStatusByAccount(StatusForm form);
}
